import App from './App'

import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'

import { $http } from '@escook/request-miniprogram'
uni.$http = $http
$http.baseUrl = 'http://192.168.4.21:3000/'

uni.$showMsg=function(title="数据加载失败！",duration=1500){
	uni.showToast({
		title,
		duration,
		icon:"none"
	})
}

// #ifndef VUE3

const app = new Vue({
    ...App
})
app.$mount()
// #endif

// // #ifdef VUE3
// import { createSSRApp } from 'vue'
// export function createApp() {
//   const app = createSSRApp(App)
//   return {
//     app
//   }
// }
// #endif